<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<script type="text/javascript" src="<spring:url value="/resource/js/jquery.min.js" />"></script>
<script type="text/javascript">
    
     $(document).ready(function() {
         
        
          
     });   
    
</script>

<c:if test="${!ajaxRequest}">
	brak ajax
</c:if>
<c:if test="${ajaxRequest}">
     ajax istnieje
</c:if>  
     
     
     
     <fieldset>

        <legend id="legend_galery">Pliki</legend>
        
        <table cellpadding="5" cellspacing="0" border="1" width="60%" align="center">
        <tbody>
            <tr>
                <td  align="center" >Nazwa pliku</td>
                <td  align="center" >Data dodania</td>
                
            </tr>
           
            <c:forEach items="${files}" var="fi">
                <tr>
                    <td  align="center" ><a href="<c:url value="/download.htm/${fi.idFile}" />"><c:out value="${fi.name}"/></a></td>
                    <td  align="center" ><c:out value="${fi.dateAdd}"/></td>
                    
                </tr>
            </c:forEach>
        </tbody>
    </table>         
        

</fieldset>